<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib   prefix="c"  
			uri="http://java.sun.com/jsp/jstl/core"  %>
<%@ taglib   prefix="fmt"  
			uri="http://java.sun.com/jsp/jstl/fmt"  %>
<%@ taglib prefix="s"  uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>C.C. COURIER</title>
<link  href="style.css" type="text/css" rel="stylesheet"/>
<style type="text/css">
.Estilo5 {font-size: 18px}
</style>
</head>

<body>
<table width="666" height="317" border="0" align="center" cellpadding="0" cellspacing="0" id="gestionar">
  <tr>
    <td height="192" align="center"><img src="imagenes/logo.jpg" width="445" height="144" /></td>
  </tr>
  <tr>
    <td height="27" id="titulo">BUSCAR ORDEN DE SERVICIO </td>
  </tr>
  <tr>
  <td>
  	<div id="cont1">
  	  <table width="556" border="0" align="center">
  	    <tr>
  	      <td width="210" height="46" >Criterio de Busqueda</td>
  	      <td colspan="2"></td>
	      </tr>
  	    <tr>
  	      <td>Orden de Servicio</td>
  	  <td width="182">
  	     
  	      
  	    <s:hidden name="transportistaDTO.idtransportista" label="ID"/>
    	<s:hidden name="guiaremisionDTO.idguiaremision" label="1"/>
    	<s:hidden name="guiaremisionDTO.fechatraslado" label="4"/>
        <s:hidden name="ordenServicioDTO.idordenservicio" label="Orden de Servicio"/>
  	    
  	    <s:form action="buscarOS" method="post">
       <s:textfield name="ordenServicioDTO.idordenservicio" label="Codigo OS"/>
  		<s:textfield name="ordenServicioDTO.fechaordens" label="Fecha OS"/>
  		<s:submit value="Buscar" />
  		</s:form>
            </td>
	      </tr>
	    </table><br />
  	</div>
  </td>
  </tr>
  <tr>
    <td>
    	<div id="cont2">
        <form>
        <fieldset>
           <legend><strong>ORDENES DE SERVICIO</strong></legend>
           <table width="100%" border="0" cellpadding="0" cellspacing="5">
             <tr>
               <td><table width="536" class="box-table-a" summary="Employee Pay Sheet">
                 <thead>
                   <tr>
                     <th width="162" scope="col">Codigo</th>
                     <th width="99" scope="col">Cliente</th>
                     <th width="96" scope="col">Fecha</th>
                     <th width="106" scope="col">Destinatario</th>
                     <th width="113" scope="col">Opcion</th>
                     </tr>
                 </thead>
                 <tbody>
                  <c:if test="${requestScope.listaOrdenesServicioDTO!=null}"   >
				
					<c:forEach items="${requestScope.listaOrdenesServicioDTO}" var="bean">
						  <s:url id="Importar" action="frmRegistrarGR"  >					     	
						     	<s:param name="ordenServicioDTO.idordenservicio" >   
						     		${bean.idordenservicio}
						     	</s:param>
						     	<s:param name="transportistaDTO.idtransportista" value="100">   
						     	</s:param>
						 </s:url>
						 
				          <tr>
				            <td width="185" scope="col"><span class="textoformulario">${bean.idordenservicio}</span></td>
						    <td width="118" scope="col"><span class="textoformulario">${bean.nombrecliente}</span></td>
				            <td width="145" scope="col"><span class="textoformulario">${bean.fechaordens}</span></td>
				            <td width="132" scope="col"><span class="textoformulario">${bean.destinatario}</span></td>
				                <td width="132" scope="col"><a href="${Importar}" > Importar</a></td>
		 		      
				    
				            
	  	 
				            
		 		          </tr>
          			 </c:forEach>
		  </c:if>
                 </tbody>
               </table></td>
             </tr>
           </table>
           </fieldset>
         </form>
        </div>
    </td>
  </tr>
  <tr>
  	<td>
    <div id="cont3">
    	<table width="554" border="0" align="center">
      <tr>
        <td width="352" bgcolor="#FFFFFF"><div align="center">
         
        </div></td>
        <td width="192" bgcolor="#FFFFFF"><div align="left">
         
           
       
        </div></td>
      </tr>
    </table>
    </div>
    </td>
  </tr>
</table>
</body>
</html>
